<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>Viewrentmessage.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <display:table name="rentMessage_list" pagesize="10" export="false" id="rentMessage"
        			   requestURI="toviewrentmessagepage.do">
        <display:setProperty name="export.excel.filename">
        <%=new String("求租信息列表.xls".getBytes("GBK"),"ISO-8859-1") %>
        </display:setProperty>
        <display:column property="user_name" title="用户名"/>
        <display:column property="message_title" title="求租信息标题"/>
        <display:column property="region" title="地区"/>
        <display:column property="rent" title="租金"/>
        <display:column title="操作"  media="html">
     	<html:link action="/toviewsinglerentmessagepage"  paramName="rentMessage" paramId="message_id" paramProperty="message_id">浏览详细</html:link>
     	</display:column>
    </display:table>
    <html:form action="/searchrentmessage" method="post">
        <table>
        <tr>
        <td>按求租信息标题搜索:包含：</td>
        <td>
        <html:text property="message_title" name="rentMessageForm"></html:text>
        </td>
        </tr>
        <tr>
        <td>按地区搜索</td>
        <td>
        <html:select property="region" name="rentMessageForm" value="请选择">
                <html:option value="黄浦区">黄浦区</html:option>
                <html:option value="金山区">金山区</html:option>
                <html:option value="南汇区">南汇区</html:option>
                <html:option value="奉贤区">奉贤区</html:option>
                <html:option value="青浦区">青浦区</html:option>
                <html:option value="嘉定区">嘉定区</html:option>
                <html:option value="宝山区">宝山区</html:option>
                <html:option value="松江区">松江区</html:option>
                <html:option value="闵行区">闵行区</html:option>
                <html:option value="浦东区">浦东区</html:option>
                <html:option value="杨浦区">杨浦区</html:option>
                <html:option value="浦东区">浦东区</html:option>
                <html:option value="虹口区">虹口区</html:option>
                <html:option value="普陀区">普陀区</html:option>
                <html:option value="闸北区">闸北区</html:option>
                <html:option value="长宁区">长宁区</html:option>
                <html:option value="徐汇区">徐汇区</html:option>
                <html:option value="卢湾区">卢湾区</html:option>
                <html:option value="静安区">静安区</html:option>
                <html:option value="崇明县">崇明县</html:option>
                <html:option value="请选择">请选择</html:option>
                </html:select>
        </td>
        </tr>
        <tr>
        <td>按租金搜索</td>
        <td>
        <html:text property="rent_begin" name="rentMessageForm"></html:text>元/月 至
        <html:text property="rent_end" name="rentMessageForm"></html:text>元/月 
        </td>
        </tr>
        <tr>
        <td align="center">
        <html:submit value="搜索"/>
        <br></td>
        <td>
        <html:link action="toviewrentmessagepage">显示全部求租信息</html:link>
        </td>
        </tr>
        </table>
    </html:form>
  </body>
</html:html>
